package com.park.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.park.dao.VideoRecordingMapper;
import com.park.model.VideoRecording;
import com.park.service.VideoRecordingService;

@Service
public class VideoRecordingServiceImpl implements VideoRecordingService {

	@Autowired
	private VideoRecordingMapper videoRecordingMapper;
	@Override
	public int insert(VideoRecording videoRecording) {
		// TODO Auto-generated method stub
		return videoRecordingMapper.insert(videoRecording);
	}

	@Override
	public int update(VideoRecording videoRecording) {
		// TODO Auto-generated method stub
		return videoRecordingMapper.updateByPrimaryKey(videoRecording);
	}

	@Override
	public int delete(List<Integer> id) {
		// TODO Auto-generated method stub
//		return videoRecordingMapper.deleteByPrimaryKey(id);
		return 0;
	}

	@Override
	public List<VideoRecording> select(int parkId, String laneNumber, String laneName, String happenTimeStart, String happenTimeEnd,int startPage, int pageSize) {
		// TODO Auto-generated method stub
//		return videoRecordingMapper.selectPage(parkId,laneNumber,laneName,happenTimeStart,happenTimeEnd,startPage, pageSize);
		return null;
	}

	@Override
	public int getAllCount(int parkId, String laneNumber, String laneName, String happenTimeStart, String happenTimeEnd) {
		// TODO Auto-generated method stub
//		return videoRecordingMapper.getAllCount(parkId,laneNumber,laneName,happenTimeStart,happenTimeEnd);
		return 0;
	}

}
